1 : <?php
2 : /*--------------------------------------------------------------------------+
3 : This file is part of eStudy.
4 : suchmaschine/classes/class.indexer.inc.php
5 : - Modulgruppe: Suche
6 : - Beschreibung: In dieser Datei wird die Klasse Indexer implementiert.
7 : - Version: 0.1 01/08/08
8 : - Autor(en): Jörg Rieger
9 : +---------------------------------------------------------------------------+
10 : This program is free software; you can redistribute it and/or
11 : modify it under the terms of the GNU General Public License
12 : as published by the Free Software Foundation; either version 2
13 : of the License, or any later version.
14 : +---------------------------------------------------------------------------+
15 : This program is distributed in the hope that it will be useful,
16 : but WITHOUT ANY WARRANTY; without even the implied warranty of
17 : MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 : GNU General Public License for more details.
19 : You should have received a copy of the GNU General Public License
20 : along with this program; if not, write to the Free Software
21 : Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
22 : +--------------------------------------------------------------------------*/
23 : /**
24 : * Path to Root falls nicht gesetzt
25 : */
26 : if (!defined('PATH_TO_ROOT')) {
27 : define("PATH_TO_ROOT", "../../");
28 :
29 : require_once('class.iindexer.inc.php');
30 : }
31 :
32 : /**
33 : * Indexer
34 : *
35 : * @package eStudy.Suchmaschine
36 : * @version 0.1 01/08/08
37 : * @author Jörg Rieger
38 : */
39 :
40 : abstract class Indexer implements IIndexer {
41 : /**
42 : * Enthält den Bezeichner des Indexers
43 : *
44 : * @var string
45 : * @access private
46 : */
47 : private $name;
48 :
49 : /**
50 : * Enhält den Inhalt der Datei
51 : *
52 : * @var string
53 : * @access private
54 : */
55 : private $file;
56 :
57 : /**
58 : * Enhält die vom Plugin Unterstützten Datei-Typen/-Erweiterungen
59 : *
60 : * @var array
61 : * @access private
62 : */
63 : private $fileExt = array();
64 :
65 : /**
66 : * Öffnen der Datei
67 : *
68 : * @access public
69 : */
70 0 : public function open( $fileName ) { }
71 :
72 : /**
73 : * Lesen der Datei
74 : *
75 : * @access public
76 : */
77 : // public function read() { }
78 :
79 : /**
80 : * Inhalt zurückgeben
81 : *
82 : * @access public
83 : * @return string
84 : */
85 0 : public function getContent() { }
86 :
87 : /**
88 : * Schliessen der Datei
89 : *
90 : * @access public
91 : */
92 0 : public function close() { }
93 :
94 : /**
95 : * Temporäre Dateien entfernen
96 : *
97 : * @access public
98 : */
99 0 : public function cleanup() { }
100 :
101 : }
|